package com.hxd.otc.module.my.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * Created by lzy on 2019/1/17 0017.
 * description ${发布挂单价格Bean}
 */
public class AdvertCoinPriceBean implements Serializable {

    private String coinType;
    private String buyMinPrice;
    private String buyMaxPrice;
    private String sellMinPrice;
    private String sellMaxPrice;
    private String easyBuyPrice;//无感支付卖价
    private String easySellPrice;//无感支付卖价

    public List<OtcPayFeesData> otcPayFees;
    public List<OtccEasyPayFeesData> otcEasyPayFees;

    public String getCoinType() {
        return coinType;
    }

    public void setCoinType(String coinType) {
        this.coinType = coinType;
    }

    public String getBuyMinPrice() {
        return buyMinPrice;
    }

    public void setBuyMinPrice(String buyMinPrice) {
        this.buyMinPrice = buyMinPrice;
    }

    public String getBuyMaxPrice() {
        return buyMaxPrice;
    }

    public void setBuyMaxPrice(String buyMaxPrice) {
        this.buyMaxPrice = buyMaxPrice;
    }

    public String getSellMinPrice() {
        return sellMinPrice;
    }

    public void setSellMinPrice(String sellMinPrice) {
        this.sellMinPrice = sellMinPrice;
    }

    public String getSellMaxPrice() {
        return sellMaxPrice;
    }

    public void setSellMaxPrice(String sellMaxPrice) {
        this.sellMaxPrice = sellMaxPrice;
    }

    public String getEasyBuyPrice() {
        return easyBuyPrice;
    }

    public void setEasyBuyPrice(String easyBuyPrice) {
        this.easyBuyPrice = easyBuyPrice;
    }

    public String getEasySellPrice() {
        return easySellPrice;
    }

    public void setEasySellPrice(String easySellPrice) {
        this.easySellPrice = easySellPrice;
    }

    @Override
    public String toString() {
        return "AdvertCoinPriceBean{" +
                "coinType='" + coinType + '\'' +
                ", buyMinPrice='" + buyMinPrice + '\'' +
                ", buyMaxPrice='" + buyMaxPrice + '\'' +
                ", sellMinPrice='" + sellMinPrice + '\'' +
                ", sellMaxPrice='" + sellMaxPrice + '\'' +
                ", easyBuyPrice='" + easyBuyPrice + '\'' +
                ", easySellPrice='" + easySellPrice + '\'' +
                ", otcPayFees=" + otcPayFees +
                ", otcEasyPayFees=" + otcEasyPayFees +
                '}';
    }

    public static class OtcPayFeesData implements Serializable{
        public int feeType;
        public int paymentType;
        public BigDecimal fromRate;
        public BigDecimal fromBaseFee;
        public BigDecimal toRate;
        public BigDecimal toBaseFee;
        public BigDecimal fromRebateRate;
        public BigDecimal fromRebateBaseFee;
        public BigDecimal toRebateRate;
        public BigDecimal toRebateBaseFee;

        public boolean isShowFee() {
            if (feeType == 0) {
                return true;
            }
            return false;
        }
        @Override
        public String toString() {
            return "OtcPayFeesData{" +
                    "feeType=" + feeType +
                    ", paymentType=" + paymentType +
                    ", fromRate=" + fromRate +
                    ", fromBaseFee=" + fromBaseFee +
                    ", toRate=" + toRate +
                    ", toBaseFee=" + toBaseFee +
                    ", fromRebateRate=" + fromRebateRate +
                    ", fromRebateBaseFee=" + fromRebateBaseFee +
                    ", toRebateRate=" + toRebateRate +
                    ", toRebateBaseFee=" + toRebateBaseFee +
                    '}';
        }
    }

    public static class OtccEasyPayFeesData implements Serializable{

        private int feeType;// 0 收取 ；1 不收取
        public int paymentType;// 1：微信 。 2 支付宝 。 3 银行卡
        public BigDecimal fromRate; //提现（卖出） 手续费比例
        public BigDecimal fromBaseFee;//提现（卖出） 手续费基础手续费
        public BigDecimal toRate;//充值（买入） 手续费比例
        public BigDecimal toBaseFee;//充值（买入）  手续费基础手续费
        public BigDecimal fromRebateRate;//提现（卖出） 手续费返点比例
        public BigDecimal fromRebateBaseFee;//提现（卖出） 手续费返点基础返点
        public BigDecimal toRebateRate;//充值（买入） 手续费返点比例
        public BigDecimal toRebateBaseFee;//充值（买入） 手续费返点基础返点

        public boolean isShowFee() {
            if (feeType == 0) {
                return true;
            }
            return false;
        }

        @Override
        public String toString() {
            return "OtccEasyPayFeesData{" +
                    "feeType=" + feeType +
                    ", paymentType=" + paymentType +
                    ", fromRate=" + fromRate +
                    ", fromBaseFee=" + fromBaseFee +
                    ", toRate=" + toRate +
                    ", toBaseFee=" + toBaseFee +
                    ", fromRebateRate=" + fromRebateRate +
                    ", fromRebateBaseFee=" + fromRebateBaseFee +
                    ", toRebateRate=" + toRebateRate +
                    ", toRebateBaseFee=" + toRebateBaseFee +
                    '}';
        }
    }
}
